
package com.submaxim_testdb.data;

import java.io.Serializable;
import java.util.Date;


/**
 *  submaxim_testDB.AuthsmtpId
 *  01/20/2012 12:39:14
 * 
 */
public class AuthsmtpId
    implements Serializable
{

    private Integer userId;
    private String spf;
    private String domainkeys;
    private String dkim;
    private String senderid;
    private Date datetime;

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof AuthsmtpId)) {
            return false;
        }
        AuthsmtpId other = ((AuthsmtpId) o);
        if (this.userId == null) {
            if (other.userId!= null) {
                return false;
            }
        } else {
            if (!this.userId.equals(other.userId)) {
                return false;
            }
        }
        if (this.spf == null) {
            if (other.spf!= null) {
                return false;
            }
        } else {
            if (!this.spf.equals(other.spf)) {
                return false;
            }
        }
        if (this.domainkeys == null) {
            if (other.domainkeys!= null) {
                return false;
            }
        } else {
            if (!this.domainkeys.equals(other.domainkeys)) {
                return false;
            }
        }
        if (this.dkim == null) {
            if (other.dkim!= null) {
                return false;
            }
        } else {
            if (!this.dkim.equals(other.dkim)) {
                return false;
            }
        }
        if (this.senderid == null) {
            if (other.senderid!= null) {
                return false;
            }
        } else {
            if (!this.senderid.equals(other.senderid)) {
                return false;
            }
        }
        if (this.datetime == null) {
            if (other.datetime!= null) {
                return false;
            }
        } else {
            if (!this.datetime.equals(other.datetime)) {
                return false;
            }
        }
        return true;
    }

    public int hashCode() {
        int rtn = 17;
        rtn = (rtn* 37);
        if (this.userId!= null) {
            rtn = (rtn + this.userId.hashCode());
        }
        rtn = (rtn* 37);
        if (this.spf!= null) {
            rtn = (rtn + this.spf.hashCode());
        }
        rtn = (rtn* 37);
        if (this.domainkeys!= null) {
            rtn = (rtn + this.domainkeys.hashCode());
        }
        rtn = (rtn* 37);
        if (this.dkim!= null) {
            rtn = (rtn + this.dkim.hashCode());
        }
        rtn = (rtn* 37);
        if (this.senderid!= null) {
            rtn = (rtn + this.senderid.hashCode());
        }
        rtn = (rtn* 37);
        if (this.datetime!= null) {
            rtn = (rtn + this.datetime.hashCode());
        }
        return rtn;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getSpf() {
        return spf;
    }

    public void setSpf(String spf) {
        this.spf = spf;
    }

    public String getDomainkeys() {
        return domainkeys;
    }

    public void setDomainkeys(String domainkeys) {
        this.domainkeys = domainkeys;
    }

    public String getDkim() {
        return dkim;
    }

    public void setDkim(String dkim) {
        this.dkim = dkim;
    }

    public String getSenderid() {
        return senderid;
    }

    public void setSenderid(String senderid) {
        this.senderid = senderid;
    }

    public Date getDatetime() {
        return datetime;
    }

    public void setDatetime(Date datetime) {
        this.datetime = datetime;
    }

}
